//
//  UserInfo.swift
//  AirlineReservation
//
//  Created by Kevin on 2019/12/28.
//  Copyright © 2019 Kevin. All rights reserved.
//

import UIKit

public class UserInfo: NSObject {
    
    @objc var passengerid:Int = 0
    @objc var permissionid:Int = 0
    @objc var userid:String?
    @objc var username:String?
    @objc var password:String?
    @objc var passwordAgain:String?
    @objc var gender:String?
    @objc var email:String?
    @objc var mobile:String?
    @objc var idnumber:String?
    @objc var expiredate:String?
    @objc var serveredate:String?
    @objc var createtime:String?
    @objc var updatetime:String?
    @objc var openmoney:String?
    
    init(dict:[String:Any]) {
        super.init()
        setValuesForKeys(dict)
    }
    
    override public func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override public var description: String {
        return dictionaryWithValues(forKeys: ["username","password","passwordAgain","gender","email","mobile","idnumber"]).description
    }
}
